package com.lovo.upload.controller;
import com.lovo.hb.entity.UserEntity;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

@RestController
@Api(tags = "用户控制层")
public class UserController {
    @ApiOperation(value = "保存用户")
    @PostMapping("saveUser")
    public UserEntity saveUser(UserEntity user){
        System.out.println("aa");
       return user;
    }
    @GetMapping("userInfo/{userName}")
    public UserEntity userInfo(@PathVariable("userName") String userName){
      UserEntity u=new UserEntity();
      u.setUserName(userName);
      return u;
    }

}
